import request from '@/utils/request'

/* 获取所有的文创列表 */
export function getCreateProductsList(){
	return request({
		method: "get",
		url:'v2/product/getCreateProductsList',
		
	})
}
// 获取类别
export function getType(){
	return request({
		method: "get",
		url:'v2/type/getTypeList'
	})
}
export function getCreateProductsListBytype(type){
	return request({
		url: "v2/product/getCreateProductsListBytype",
		method: "get",
		params: {
			type
		},
	});
}
// 根据id展示商品
export function getCreateProducts(id) {
	return request({
		url: "v2/product/getCreateProducts",
		method: "get",
		params: {
			id
		},
	});
}